package com.itheima.health.service;

import com.itheima.health.pojo.Member;

import java.util.List;

public interface MemberService {
    /**
     * @Author: 位帅帅
     * @Date: 19:47 2021/1/10
     * @Params: [member]
     * @RerurnType: com.itheima.health.pojo.Member
     * @Description: 创建或更新会员信息
    */
    Member addOrUpdate(Member member);

    /**
     * @Author: 位帅帅
     * @Date: 20:22 2021/1/10
     * @Params: [memberId]
     * @RerurnType: com.itheima.health.pojo.Member
     * @Description: 根据id查询
    */
    Member findById(Integer memberId);

    /**
     * @Author: 位帅帅
     * @Date: 16:26 2021/1/14
     * @Params: [months]
     * @RerurnType: java.util.List<java.lang.Integer>
     * @Description: 根据月份列表获取会员数量列表
    */
    List<Integer> countByMonth(List<String> months);
}
